/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-04-03
 * Time: 9:33
 */
class Singleton {
    private static Singleton instance = new Singleton();
    public  static Singleton getInstance(){
        return instance;
    }
    private Singleton (){

    }
}
public class Demo1 {
    public static void main(String[] args) {
        Singleton s1 = Singleton.getInstance();
        Singleton s2=new Singleton();

    }
}
